package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverScoreDeductingCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DriverScoreDeducting对象", description = "")
public class DriverScoreDeducting implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long driverId;

    private Integer deduction;

    @ApiModelProperty(value = "0:unknown,1:responsibility,2:administrators")
    private DriverScoreDeductingCategory category;

    private Long referenceId;

    private String detail;

    @ApiModelProperty(value = "是否完全涨回")
    private Boolean isRecover;

    @ApiModelProperty(value = "涨回的分数")
    private BigDecimal recoverScore;

    @ApiModelProperty(value = "下一个涨回时间")
    private String nextCheckDate;

    private Date startedAt;

    private Date endedAt;

    @ApiModelProperty(value = "修改时间")
    private Date updatedAt;


}